<style>
<!--
td
{
text-align:center;
}
-->
</style>
<?php 
	defined('_JEXEC') or die('Restricted access'); 
	
	AdminUIHelper::startAdminArea ();
	JHTML::_('behavior.tooltip'); 
	$param=$this->param;
	$value=array('age'=>'','name'=>'');
	if(isset($this->id)){ $value=array('age'=>$this->row->age,'name'=>$this->row->name);}
?>
<form name='adminForm' action='index.php?option=com_svquanlycanbo&view=chucvu' method='post'>
	<input type='hidden' name='task' />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $param['order']; ?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $param['order_Dir']; ?>" />
	<div id="editcell">
		<table class='adminlist'>
			<thead>
				<tr>
					<th width="50">#</th>
					<th width="50"><input type="checkbox" name="toggle" value="" onclick="checkAll(10);"></th>
					<th width="150"><?php echo JHTML::_('grid.sort','Tên','cv_ten',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th ><?php echo JHTML::_('grid.sort','Miêu tả','cv_mieuta',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="150"><?php echo JHTML::_('grid.sort','Thời gian cập nhật','timeupdate',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="150"><?php echo JHTML::_('grid.sort','Cập nhật bởi','idupdate',@$this->param['order_Dir'],@$this->param['order']);?></th>
					<th width="40"><?php echo JHTML::_('grid.sort','ID','cv_id',@$this->param['order_Dir'],@$this->param['order']);?></th>
				</tr>
			</thead>
			<tbody>
				<?php 
					$i=0;
					$k=0;
					foreach($this->objectList as $record)
					{
						$checked     = JHTML::_('grid.id',   $k , $record->cv_id);
						$k=$k+1;
						echo '<tr class="row'.$i.'">';
							echo '<td width="50">'.$k.'</td>';
							echo '<td width="50">'.$checked.'</td>';
							echo '<td width="150">
									<a href="index.php?option=com_svquanlycanbo&view=chucvu&task=edit&cid[]='.$record->cv_id.'" >'.$record->cv_ten.'</a>
								</td>';
							echo '<td >'.$record->cv_mieuta.'</td>';
							echo '<td width="150">'.$record->timeupdate.'</td>';
							echo '<td width="150">'.$record->idupdate.'</td>';
							echo '<td width="40">'.$record->cv_id.'</td>';
						echo '</tr>';
						$i=1-$i;	
					}

				?>
			</tbody>
			<tfoot>
				<tr>
					<td colspan="7">
						<?php echo $this->pager->getListFooter(); ?>
					</td>
				</tr>
			</tfoot>
		</table>
	</div>
</form>